/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.admin.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import org.springblade.core.mp.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springblade.modules.admin.vo.contract.ContractHistoryVo;
import org.springblade.modules.admin.vo.contract.ContractStatusVo;
import org.springblade.modules.admin.vo.contract.ContractUpdateDescVo;

/**
 * 实体类
 *
 * @author ysq
 * @since 2025-02-11
 */
@Data
@TableName(value = "blade_contract_log", autoResultMap = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ContractLog对象", description = "ContractLog对象")
public class ContractLog extends TenantEntity {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "操作前状态")
	@TableField(typeHandler = FastjsonTypeHandler.class)
	private ContractStatusVo beforeStatusInfo;

	@ApiModelProperty(value = "操作后状态")
	@TableField(typeHandler = FastjsonTypeHandler.class)
	private ContractStatusVo afterStatusInfo;

	@ApiModelProperty(value = "按钮-操作")
	@TableField(typeHandler = FastjsonTypeHandler.class)
	private ContractHistoryVo historyInfo;


	@ApiModelProperty(value = "内容变更-前")
	@TableField(typeHandler = FastjsonTypeHandler.class)
	private ContractUpdateDescVo beforeDesc;


	@ApiModelProperty(value = "内容变更-后")
	@TableField(typeHandler = FastjsonTypeHandler.class)
	private ContractUpdateDescVo afterDesc;

	@ApiModelProperty(value = "创建人")
	private String createUserName;

	@ApiModelProperty("合同id")
	private Long contractId;
}
